package com.diy.sigmund.diycommon.designpatterns.strategy.duck;

import com.diy.sigmund.diycommon.designpatterns.strategy.duck.flybehavior.FlyWithWings;
import com.diy.sigmund.diycommon.designpatterns.strategy.duck.quackbehavior.Quack;

/**
 * 红头鸭子
 *
 * @author ylm-sigmund
 * @since 2022/1/13 10:20
 */
public class ReadHeadDuck extends Duck {

    public ReadHeadDuck() {
        flyBehavior = new FlyWithWings();
        quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.out.println("ReadHeadDuck");
    }

}
